﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="FaultLocationData" targetNamespace="http://tempuri.org/FaultLocationData.xsd" xmlns:mstns="http://tempuri.org/FaultLocationData.xsd" xmlns="http://tempuri.org/FaultLocationData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="openXDAConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Public" Name="openXDAConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.FaultData.Properties.Settings.GlobalReference.Default.openXDAConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CycleDataTableAdapter" GeneratorDataComponentClassName="CycleDataTableAdapter" Name="CycleData" UserDataComponentName="CycleDataTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="MeterDB.dbo.CycleData" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[CycleData] WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[CycleData] ([EventID], [Data]) VALUES (@EventID, @Data);
SELECT ID, EventID, Data FROM CycleData WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@Data" Precision="0" ProviderType="VarBinary" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, EventID, Data FROM dbo.CycleData</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[CycleData] SET [EventID] = @EventID, [Data] = @Data WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID));
SELECT ID, EventID, Data FROM CycleData WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@Data" Precision="0" ProviderType="VarBinary" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="EventID" DataSetColumn="EventID" />
              <Mapping SourceColumn="Data" DataSetColumn="Data" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="MeterDB.dbo.CycleData" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, EventID, Data FROM dbo.CycleData WHERE EventID = @eventID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="eventID" ColumnName="EventID" DataSourceName="MeterDB.dbo.CycleData" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@eventID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FaultCurveTableAdapter" GeneratorDataComponentClassName="FaultCurveTableAdapter" Name="FaultCurve" UserDataComponentName="FaultCurveTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.FaultCurve" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[FaultCurve] WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID) AND ([Algorithm] = @Original_Algorithm))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Algorithm" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Algorithm" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[FaultCurve] ([EventID], [Algorithm], [Data]) VALUES (@EventID, @Algorithm, @Data);
SELECT ID, EventID, Algorithm, Data FROM FaultCurve WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Algorithm" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Algorithm" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@Data" Precision="0" ProviderType="VarBinary" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, EventID, Algorithm, Data FROM dbo.FaultCurve</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[FaultCurve] SET [EventID] = @EventID, [Algorithm] = @Algorithm, [Data] = @Data WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID) AND ([Algorithm] = @Original_Algorithm));
SELECT ID, EventID, Algorithm, Data FROM FaultCurve WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Algorithm" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Algorithm" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@Data" Precision="0" ProviderType="VarBinary" Scale="0" Size="0" SourceColumn="Data" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Algorithm" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Algorithm" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="EventID" DataSetColumn="EventID" />
              <Mapping SourceColumn="Algorithm" DataSetColumn="Algorithm" />
              <Mapping SourceColumn="Data" DataSetColumn="Data" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.FaultCurve" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, EventID, Algorithm, Data FROM dbo.FaultCurve WHERE EventID = @eventID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="eventID" ColumnName="EventID" DataSourceName="openXDA.dbo.FaultCurve" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@eventID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FaultSegmentTableAdapter" GeneratorDataComponentClassName="FaultSegmentTableAdapter" Name="FaultSegment" UserDataComponentName="FaultSegmentTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.FaultSegment" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[FaultSegment] WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID) AND ([SegmentTypeID] = @Original_SegmentTypeID) AND ([StartTime] = @Original_StartTime) AND ([EndTime] = @Original_EndTime) AND ([StartSample] = @Original_StartSample) AND ([EndSample] = @Original_EndSample))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SegmentTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SegmentTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_StartTime" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_EndTime" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="EndTime" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_StartSample" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StartSample" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EndSample" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EndSample" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[FaultSegment] ([EventID], [SegmentTypeID], [StartTime], [EndTime], [StartSample], [EndSample]) VALUES (@EventID, @SegmentTypeID, @StartTime, @EndTime, @StartSample, @EndSample);
SELECT ID, EventID, SegmentTypeID, StartTime, EndTime, StartSample, EndSample FROM FaultSegment WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SegmentTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SegmentTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@StartTime" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@EndTime" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="EndTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@StartSample" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StartSample" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EndSample" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EndSample" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, EventID, SegmentTypeID, StartTime, EndTime, StartSample, EndSample FROM dbo.FaultSegment</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[FaultSegment] SET [EventID] = @EventID, [SegmentTypeID] = @SegmentTypeID, [StartTime] = @StartTime, [EndTime] = @EndTime, [StartSample] = @StartSample, [EndSample] = @EndSample WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID) AND ([SegmentTypeID] = @Original_SegmentTypeID) AND ([StartTime] = @Original_StartTime) AND ([EndTime] = @Original_EndTime) AND ([StartSample] = @Original_StartSample) AND ([EndSample] = @Original_EndSample));
SELECT ID, EventID, SegmentTypeID, StartTime, EndTime, StartSample, EndSample FROM FaultSegment WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SegmentTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SegmentTypeID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@StartTime" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@EndTime" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="EndTime" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@StartSample" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StartSample" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EndSample" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EndSample" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SegmentTypeID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SegmentTypeID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_StartTime" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="StartTime" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_EndTime" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="EndTime" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_StartSample" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StartSample" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EndSample" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EndSample" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="EventID" DataSetColumn="EventID" />
              <Mapping SourceColumn="SegmentTypeID" DataSetColumn="SegmentTypeID" />
              <Mapping SourceColumn="StartTime" DataSetColumn="StartTime" />
              <Mapping SourceColumn="EndTime" DataSetColumn="EndTime" />
              <Mapping SourceColumn="StartSample" DataSetColumn="StartSample" />
              <Mapping SourceColumn="EndSample" DataSetColumn="EndSample" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="GTC4.dbo.FaultSegment" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, EventID, SegmentTypeID, StartTime, EndTime, StartSample, EndSample FROM dbo.FaultSegment WHERE EventID = @eventID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="eventID" ColumnName="EventID" DataSourceName="GTC4.dbo.FaultSegment" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@eventID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DoubleEndedFaultDistanceTableAdapter" GeneratorDataComponentClassName="DoubleEndedFaultDistanceTableAdapter" Name="DoubleEndedFaultDistance" UserDataComponentName="DoubleEndedFaultDistanceTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.DoubleEndedFaultDistance" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[DoubleEndedFaultDistance] WHERE (([ID] = @Original_ID) AND ([LocalFaultSummaryID] = @Original_LocalFaultSummaryID) AND ([RemoteFaultSummaryID] = @Original_RemoteFaultSummaryID) AND ([Distance] = @Original_Distance) AND ([Angle] = @Original_Angle) AND ([IsValid] = @Original_IsValid))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_LocalFaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LocalFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RemoteFaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RemoteFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Distance" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Angle" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Angle" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IsValid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsValid" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[DoubleEndedFaultDistance] ([LocalFaultSummaryID], [RemoteFaultSummaryID], [Distance], [Angle], [IsValid]) VALUES (@LocalFaultSummaryID, @RemoteFaultSummaryID, @Distance, @Angle, @IsValid);
SELECT ID, LocalFaultSummaryID, RemoteFaultSummaryID, Distance, Angle, IsValid FROM DoubleEndedFaultDistance WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@LocalFaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LocalFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RemoteFaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RemoteFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Distance" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Angle" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Angle" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsValid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsValid" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, LocalFaultSummaryID, RemoteFaultSummaryID, Distance, Angle, IsValid FROM dbo.DoubleEndedFaultDistance</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[DoubleEndedFaultDistance] SET [LocalFaultSummaryID] = @LocalFaultSummaryID, [RemoteFaultSummaryID] = @RemoteFaultSummaryID, [Distance] = @Distance, [Angle] = @Angle, [IsValid] = @IsValid WHERE (([ID] = @Original_ID) AND ([LocalFaultSummaryID] = @Original_LocalFaultSummaryID) AND ([RemoteFaultSummaryID] = @Original_RemoteFaultSummaryID) AND ([Distance] = @Original_Distance) AND ([Angle] = @Original_Angle) AND ([IsValid] = @Original_IsValid));
SELECT ID, LocalFaultSummaryID, RemoteFaultSummaryID, Distance, Angle, IsValid FROM DoubleEndedFaultDistance WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@LocalFaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LocalFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@RemoteFaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RemoteFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Distance" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Angle" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Angle" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsValid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsValid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_LocalFaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="LocalFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_RemoteFaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="RemoteFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Distance" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Angle" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Angle" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IsValid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsValid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="LocalFaultSummaryID" DataSetColumn="LocalFaultSummaryID" />
              <Mapping SourceColumn="RemoteFaultSummaryID" DataSetColumn="RemoteFaultSummaryID" />
              <Mapping SourceColumn="Distance" DataSetColumn="Distance" />
              <Mapping SourceColumn="Angle" DataSetColumn="Angle" />
              <Mapping SourceColumn="IsValid" DataSetColumn="IsValid" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetCountBy" Modifier="Public" Name="GetCountBy" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetCountBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COUNT(*) FROM DoubleEndedFaultDistance WHERE LocalFaultSummaryID = @faultSummaryID OR RemoteFaultSummaryID = @faultSummaryID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="faultSummaryID" ColumnName="LocalFaultSummaryID" DataSourceName="openXDA.dbo.DoubleEndedFaultDistance" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@faultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="LocalFaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FaultSummaryTableAdapter" GeneratorDataComponentClassName="FaultSummaryTableAdapter" Name="FaultSummary" UserDataComponentName="FaultSummaryTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.FaultSummary" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[FaultSummary] WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID) AND ([Algorithm] = @Original_Algorithm) AND ([FaultNumber] = @Original_FaultNumber) AND ([CalculationCycle] = @Original_CalculationCycle) AND ([Distance] = @Original_Distance) AND ([CurrentMagnitude] = @Original_CurrentMagnitude) AND ([CurrentLag] = @Original_CurrentLag) AND ([PrefaultCurrent] = @Original_PrefaultCurrent) AND ([PostfaultCurrent] = @Original_PostfaultCurrent) AND ([Inception] = @Original_Inception) AND ([DurationSeconds] = @Original_DurationSeconds) AND ([DurationCycles] = @Original_DurationCycles) AND ([FaultType] = @Original_FaultType) AND ([IsSelectedAlgorithm] = @Original_IsSelectedAlgorithm) AND ([IsValid] = @Original_IsValid) AND ([IsSuppressed] = @Original_IsSuppressed))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Algorithm" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Algorithm" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_FaultNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CalculationCycle" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CalculationCycle" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Distance" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CurrentMagnitude" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentMagnitude" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CurrentLag" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentLag" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PrefaultCurrent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PrefaultCurrent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PostfaultCurrent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PostfaultCurrent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_Inception" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Inception" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DurationSeconds" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DurationSeconds" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DurationCycles" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DurationCycles" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_FaultType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FaultType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IsSelectedAlgorithm" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsSelectedAlgorithm" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IsValid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsValid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IsSuppressed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsSuppressed" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[FaultSummary] ([EventID], [Algorithm], [FaultNumber], [CalculationCycle], [Distance], [CurrentMagnitude], [CurrentLag], [PrefaultCurrent], [PostfaultCurrent], [Inception], [DurationSeconds], [DurationCycles], [FaultType], [IsSelectedAlgorithm], [IsValid], [IsSuppressed]) VALUES (@EventID, @Algorithm, @FaultNumber, @CalculationCycle, @Distance, @CurrentMagnitude, @CurrentLag, @PrefaultCurrent, @PostfaultCurrent, @Inception, @DurationSeconds, @DurationCycles, @FaultType, @IsSelectedAlgorithm, @IsValid, @IsSuppressed);
SELECT ID, EventID, Algorithm, FaultNumber, CalculationCycle, Distance, CurrentMagnitude, CurrentLag, PrefaultCurrent, PostfaultCurrent, Inception, DurationSeconds, DurationCycles, FaultType, IsSelectedAlgorithm, IsValid, IsSuppressed FROM FaultSummary WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Algorithm" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Algorithm" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@FaultNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CalculationCycle" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CalculationCycle" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Distance" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CurrentMagnitude" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentMagnitude" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CurrentLag" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentLag" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PrefaultCurrent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PrefaultCurrent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PostfaultCurrent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PostfaultCurrent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Inception" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Inception" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DurationSeconds" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DurationSeconds" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DurationCycles" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DurationCycles" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FaultType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FaultType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsSelectedAlgorithm" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsSelectedAlgorithm" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsValid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsValid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsSuppressed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsSuppressed" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, EventID, Algorithm, FaultNumber, CalculationCycle, Distance, CurrentMagnitude, CurrentLag, PrefaultCurrent, PostfaultCurrent, Inception, DurationSeconds, DurationCycles, FaultType, IsSelectedAlgorithm, IsValid, IsSuppressed FROM dbo.FaultSummary</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[FaultSummary] SET [EventID] = @EventID, [Algorithm] = @Algorithm, [FaultNumber] = @FaultNumber, [CalculationCycle] = @CalculationCycle, [Distance] = @Distance, [CurrentMagnitude] = @CurrentMagnitude, [CurrentLag] = @CurrentLag, [PrefaultCurrent] = @PrefaultCurrent, [PostfaultCurrent] = @PostfaultCurrent, [Inception] = @Inception, [DurationSeconds] = @DurationSeconds, [DurationCycles] = @DurationCycles, [FaultType] = @FaultType, [IsSelectedAlgorithm] = @IsSelectedAlgorithm, [IsValid] = @IsValid, [IsSuppressed] = @IsSuppressed WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID) AND ([Algorithm] = @Original_Algorithm) AND ([FaultNumber] = @Original_FaultNumber) AND ([CalculationCycle] = @Original_CalculationCycle) AND ([Distance] = @Original_Distance) AND ([CurrentMagnitude] = @Original_CurrentMagnitude) AND ([CurrentLag] = @Original_CurrentLag) AND ([PrefaultCurrent] = @Original_PrefaultCurrent) AND ([PostfaultCurrent] = @Original_PostfaultCurrent) AND ([Inception] = @Original_Inception) AND ([DurationSeconds] = @Original_DurationSeconds) AND ([DurationCycles] = @Original_DurationCycles) AND ([FaultType] = @Original_FaultType) AND ([IsSelectedAlgorithm] = @Original_IsSelectedAlgorithm) AND ([IsValid] = @Original_IsValid) AND ([IsSuppressed] = @Original_IsSuppressed));
SELECT ID, EventID, Algorithm, FaultNumber, CalculationCycle, Distance, CurrentMagnitude, CurrentLag, PrefaultCurrent, PostfaultCurrent, Inception, DurationSeconds, DurationCycles, FaultType, IsSelectedAlgorithm, IsValid, IsSuppressed FROM FaultSummary WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Algorithm" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Algorithm" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@FaultNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultNumber" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@CalculationCycle" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CalculationCycle" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Distance" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CurrentMagnitude" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentMagnitude" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@CurrentLag" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentLag" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PrefaultCurrent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PrefaultCurrent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@PostfaultCurrent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PostfaultCurrent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Inception" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Inception" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DurationSeconds" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DurationSeconds" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@DurationCycles" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DurationCycles" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FaultType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FaultType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsSelectedAlgorithm" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsSelectedAlgorithm" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsValid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsValid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsSuppressed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsSuppressed" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Algorithm" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Algorithm" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_FaultNumber" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultNumber" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_CalculationCycle" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="CalculationCycle" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_Distance" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="Distance" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CurrentMagnitude" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentMagnitude" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_CurrentLag" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="CurrentLag" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PrefaultCurrent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PrefaultCurrent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_PostfaultCurrent" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="PostfaultCurrent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime2" Direction="Input" ParameterName="@Original_Inception" Precision="0" ProviderType="DateTime2" Scale="0" Size="0" SourceColumn="Inception" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DurationSeconds" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DurationSeconds" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Double" Direction="Input" ParameterName="@Original_DurationCycles" Precision="0" ProviderType="Float" Scale="0" Size="0" SourceColumn="DurationCycles" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_FaultType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FaultType" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IsSelectedAlgorithm" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsSelectedAlgorithm" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IsValid" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsValid" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_IsSuppressed" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IsSuppressed" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="EventID" DataSetColumn="EventID" />
              <Mapping SourceColumn="Algorithm" DataSetColumn="Algorithm" />
              <Mapping SourceColumn="FaultNumber" DataSetColumn="FaultNumber" />
              <Mapping SourceColumn="CalculationCycle" DataSetColumn="CalculationCycle" />
              <Mapping SourceColumn="Distance" DataSetColumn="Distance" />
              <Mapping SourceColumn="CurrentMagnitude" DataSetColumn="CurrentMagnitude" />
              <Mapping SourceColumn="CurrentLag" DataSetColumn="CurrentLag" />
              <Mapping SourceColumn="PrefaultCurrent" DataSetColumn="PrefaultCurrent" />
              <Mapping SourceColumn="PostfaultCurrent" DataSetColumn="PostfaultCurrent" />
              <Mapping SourceColumn="Inception" DataSetColumn="Inception" />
              <Mapping SourceColumn="DurationSeconds" DataSetColumn="DurationSeconds" />
              <Mapping SourceColumn="DurationCycles" DataSetColumn="DurationCycles" />
              <Mapping SourceColumn="FaultType" DataSetColumn="FaultType" />
              <Mapping SourceColumn="IsSelectedAlgorithm" DataSetColumn="IsSelectedAlgorithm" />
              <Mapping SourceColumn="IsValid" DataSetColumn="IsValid" />
              <Mapping SourceColumn="IsSuppressed" DataSetColumn="IsSuppressed" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.FaultSummary" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetDataBy" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="FillBy">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ID, EventID, Algorithm, FaultNumber, CalculationCycle, Distance, CurrentMagnitude, CurrentLag, PrefaultCurrent, PostfaultCurrent, Inception, DurationSeconds, DurationCycles, FaultType, IsSelectedAlgorithm, IsValid, IsSuppressed FROM dbo.FaultSummary WHERE EventID = @eventID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="eventID" ColumnName="EventID" DataSourceName="openXDA.dbo.FaultSummary" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@eventID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.FaultSummary" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByFileGroup" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByFileGroup" GeneratorSourceName="FillByFileGroup" GetMethodModifier="Public" GetMethodName="GetDataByFileGroup" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByFileGroup" UserSourceName="FillByFileGroup">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT FaultSummary.ID, FaultSummary.EventID, FaultSummary.Algorithm, FaultSummary.FaultNumber, FaultSummary.CalculationCycle, FaultSummary.Distance, FaultSummary.CurrentMagnitude, FaultSummary.CurrentLag, FaultSummary.PrefaultCurrent, FaultSummary.PostfaultCurrent, FaultSummary.Inception, FaultSummary.DurationSeconds, FaultSummary.DurationCycles, FaultSummary.FaultType, FaultSummary.IsSelectedAlgorithm, FaultSummary.IsValid, FaultSummary.IsSuppressed FROM FaultSummary JOIN Event ON FaultSummary.EventID = Event.ID WHERE Event.FileGroupID = @fileGroupID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="fileGroupID" ColumnName="FileGroupID" DataSourceName="openXDA.dbo.Event" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@fileGroupID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="FileGroupID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="NearestStructureTableAdapter" GeneratorDataComponentClassName="NearestStructureTableAdapter" Name="NearestStructure" UserDataComponentName="NearestStructureTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.NearestStructure" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[NearestStructure] WHERE (([ID] = @Original_ID) AND ([FaultSummaryID] = @Original_FaultSummaryID) AND ([StructureID] = @Original_StructureID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_FaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_StructureID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StructureID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[NearestStructure] ([FaultSummaryID], [StructureID]) VALUES (@FaultSummaryID, @StructureID);
SELECT ID, FaultSummaryID, StructureID FROM NearestStructure WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@FaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@StructureID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StructureID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, FaultSummaryID, StructureID FROM dbo.NearestStructure</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[NearestStructure] SET [FaultSummaryID] = @FaultSummaryID, [StructureID] = @StructureID WHERE (([ID] = @Original_ID) AND ([FaultSummaryID] = @Original_FaultSummaryID) AND ([StructureID] = @Original_StructureID));
SELECT ID, FaultSummaryID, StructureID FROM NearestStructure WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@FaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@StructureID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StructureID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_FaultSummaryID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultSummaryID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_StructureID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="StructureID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="FaultSummaryID" DataSetColumn="FaultSummaryID" />
              <Mapping SourceColumn="StructureID" DataSetColumn="StructureID" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FaultEmailTableAdapter" GeneratorDataComponentClassName="FaultEmailTableAdapter" Name="FaultEmail" UserDataComponentName="FaultEmailTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.FaultEmail" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[FaultEmail] WHERE (([ID] = @Original_ID) AND ([TimeSent] = @Original_TimeSent) AND ([Subject] = @Original_Subject))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeSent" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeSent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Subject" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Subject" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[FaultEmail] ([TimeSent], [ToLine], [Subject], [Message]) VALUES (@TimeSent, @ToLine, @Subject, @Message);
SELECT ID, TimeSent, ToLine, Subject, Message FROM FaultEmail WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeSent" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeSent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ToLine" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ToLine" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Subject" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Subject" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Message" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Message" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, TimeSent, ToLine, Subject, Message FROM dbo.FaultEmail</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[FaultEmail] SET [TimeSent] = @TimeSent, [ToLine] = @ToLine, [Subject] = @Subject, [Message] = @Message WHERE (([ID] = @Original_ID) AND ([TimeSent] = @Original_TimeSent) AND ([Subject] = @Original_Subject));
SELECT ID, TimeSent, ToLine, Subject, Message FROM FaultEmail WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@TimeSent" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeSent" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ToLine" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ToLine" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Subject" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Subject" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Message" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Message" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_TimeSent" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="TimeSent" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Subject" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Subject" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="TimeSent" DataSetColumn="TimeSent" />
              <Mapping SourceColumn="ToLine" DataSetColumn="ToLine" />
              <Mapping SourceColumn="Subject" DataSetColumn="Subject" />
              <Mapping SourceColumn="Message" DataSetColumn="Message" />
            </Mappings>
            <Sources />
          </TableAdapter>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="EventFaultEmailTableAdapter" GeneratorDataComponentClassName="EventFaultEmailTableAdapter" Name="EventFaultEmail" UserDataComponentName="EventFaultEmailTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectName="openXDA.dbo.EventFaultEmail" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[EventFaultEmail] WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID) AND ([FaultEmailID] = @Original_FaultEmailID))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_FaultEmailID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultEmailID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[EventFaultEmail] ([EventID], [FaultEmailID]) VALUES (@EventID, @FaultEmailID);
SELECT ID, EventID, FaultEmailID FROM EventFaultEmail WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@FaultEmailID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultEmailID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ID, EventID, FaultEmailID FROM dbo.EventFaultEmail</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[EventFaultEmail] SET [EventID] = @EventID, [FaultEmailID] = @FaultEmailID WHERE (([ID] = @Original_ID) AND ([EventID] = @Original_EventID) AND ([FaultEmailID] = @Original_FaultEmailID));
SELECT ID, EventID, FaultEmailID FROM EventFaultEmail WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@FaultEmailID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultEmailID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_EventID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_FaultEmailID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="FaultEmailID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="EventID" DataSetColumn="EventID" />
              <Mapping SourceColumn="FaultEmailID" DataSetColumn="FaultEmailID" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="openXDAConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="GetFaultEmailCount" Modifier="Public" Name="GetFaultEmailCount" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="GetFaultEmailCount">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT COUNT(*) FROM EventFaultEmail WHERE EventID = @eventID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="eventID" ColumnName="EventID" DataSourceName="openXDA.dbo.EventFaultEmail" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@eventID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="EventID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="FaultLocationData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="FaultLocationData" msprop:Generator_UserDSName="FaultLocationData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="CycleData" msprop:Generator_TableClassName="CycleDataDataTable" msprop:Generator_TableVarName="tableCycleData" msprop:Generator_TablePropName="CycleData" msprop:Generator_RowDeletingName="CycleDataRowDeleting" msprop:Generator_RowChangingName="CycleDataRowChanging" msprop:Generator_RowEvHandlerName="CycleDataRowChangeEventHandler" msprop:Generator_RowDeletedName="CycleDataRowDeleted" msprop:Generator_UserTableName="CycleData" msprop:Generator_RowChangedName="CycleDataRowChanged" msprop:Generator_RowEvArgName="CycleDataRowChangeEvent" msprop:Generator_RowClassName="CycleDataRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="EventID" msprop:Generator_ColumnVarNameInTable="columnEventID" msprop:Generator_ColumnPropNameInRow="EventID" msprop:Generator_ColumnPropNameInTable="EventIDColumn" msprop:Generator_UserColumnName="EventID" type="xs:int" />
              <xs:element name="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" msprop:Generator_UserColumnName="Data" type="xs:base64Binary" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="FaultCurve" msprop:Generator_TableClassName="FaultCurveDataTable" msprop:Generator_TableVarName="tableFaultCurve" msprop:Generator_TablePropName="FaultCurve" msprop:Generator_RowDeletingName="FaultCurveRowDeleting" msprop:Generator_RowChangingName="FaultCurveRowChanging" msprop:Generator_RowEvHandlerName="FaultCurveRowChangeEventHandler" msprop:Generator_RowDeletedName="FaultCurveRowDeleted" msprop:Generator_UserTableName="FaultCurve" msprop:Generator_RowChangedName="FaultCurveRowChanged" msprop:Generator_RowEvArgName="FaultCurveRowChangeEvent" msprop:Generator_RowClassName="FaultCurveRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="EventID" msprop:Generator_ColumnVarNameInTable="columnEventID" msprop:Generator_ColumnPropNameInRow="EventID" msprop:Generator_ColumnPropNameInTable="EventIDColumn" msprop:Generator_UserColumnName="EventID" type="xs:int" />
              <xs:element name="Algorithm" msprop:Generator_ColumnVarNameInTable="columnAlgorithm" msprop:Generator_ColumnPropNameInRow="Algorithm" msprop:Generator_ColumnPropNameInTable="AlgorithmColumn" msprop:Generator_UserColumnName="Algorithm">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="80" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Data" msprop:Generator_ColumnVarNameInTable="columnData" msprop:Generator_ColumnPropNameInRow="Data" msprop:Generator_ColumnPropNameInTable="DataColumn" msprop:Generator_UserColumnName="Data" type="xs:base64Binary" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="FaultSegment" msprop:Generator_TableClassName="FaultSegmentDataTable" msprop:Generator_TableVarName="tableFaultSegment" msprop:Generator_TablePropName="FaultSegment" msprop:Generator_RowDeletingName="FaultSegmentRowDeleting" msprop:Generator_RowChangingName="FaultSegmentRowChanging" msprop:Generator_RowEvHandlerName="FaultSegmentRowChangeEventHandler" msprop:Generator_RowDeletedName="FaultSegmentRowDeleted" msprop:Generator_UserTableName="FaultSegment" msprop:Generator_RowChangedName="FaultSegmentRowChanged" msprop:Generator_RowEvArgName="FaultSegmentRowChangeEvent" msprop:Generator_RowClassName="FaultSegmentRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="EventID" msprop:Generator_ColumnVarNameInTable="columnEventID" msprop:Generator_ColumnPropNameInRow="EventID" msprop:Generator_ColumnPropNameInTable="EventIDColumn" msprop:Generator_UserColumnName="EventID" type="xs:int" />
              <xs:element name="SegmentTypeID" msprop:Generator_ColumnVarNameInTable="columnSegmentTypeID" msprop:Generator_ColumnPropNameInRow="SegmentTypeID" msprop:Generator_ColumnPropNameInTable="SegmentTypeIDColumn" msprop:Generator_UserColumnName="SegmentTypeID" type="xs:int" />
              <xs:element name="StartTime" msprop:Generator_ColumnVarNameInTable="columnStartTime" msprop:Generator_ColumnPropNameInRow="StartTime" msprop:Generator_ColumnPropNameInTable="StartTimeColumn" msprop:Generator_UserColumnName="StartTime" type="xs:dateTime" />
              <xs:element name="EndTime" msprop:Generator_ColumnVarNameInTable="columnEndTime" msprop:Generator_ColumnPropNameInRow="EndTime" msprop:Generator_ColumnPropNameInTable="EndTimeColumn" msprop:Generator_UserColumnName="EndTime" type="xs:dateTime" />
              <xs:element name="StartSample" msprop:Generator_ColumnVarNameInTable="columnStartSample" msprop:Generator_ColumnPropNameInRow="StartSample" msprop:Generator_ColumnPropNameInTable="StartSampleColumn" msprop:Generator_UserColumnName="StartSample" type="xs:int" />
              <xs:element name="EndSample" msprop:Generator_ColumnVarNameInTable="columnEndSample" msprop:Generator_ColumnPropNameInRow="EndSample" msprop:Generator_ColumnPropNameInTable="EndSampleColumn" msprop:Generator_UserColumnName="EndSample" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="DoubleEndedFaultDistance" msprop:Generator_TableClassName="DoubleEndedFaultDistanceDataTable" msprop:Generator_TableVarName="tableDoubleEndedFaultDistance" msprop:Generator_TablePropName="DoubleEndedFaultDistance" msprop:Generator_RowDeletingName="DoubleEndedFaultDistanceRowDeleting" msprop:Generator_RowChangingName="DoubleEndedFaultDistanceRowChanging" msprop:Generator_RowEvHandlerName="DoubleEndedFaultDistanceRowChangeEventHandler" msprop:Generator_RowDeletedName="DoubleEndedFaultDistanceRowDeleted" msprop:Generator_UserTableName="DoubleEndedFaultDistance" msprop:Generator_RowChangedName="DoubleEndedFaultDistanceRowChanged" msprop:Generator_RowEvArgName="DoubleEndedFaultDistanceRowChangeEvent" msprop:Generator_RowClassName="DoubleEndedFaultDistanceRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="LocalFaultSummaryID" msprop:Generator_ColumnVarNameInTable="columnLocalFaultSummaryID" msprop:Generator_ColumnPropNameInRow="LocalFaultSummaryID" msprop:Generator_ColumnPropNameInTable="LocalFaultSummaryIDColumn" msprop:Generator_UserColumnName="LocalFaultSummaryID" type="xs:int" />
              <xs:element name="RemoteFaultSummaryID" msprop:Generator_ColumnVarNameInTable="columnRemoteFaultSummaryID" msprop:Generator_ColumnPropNameInRow="RemoteFaultSummaryID" msprop:Generator_ColumnPropNameInTable="RemoteFaultSummaryIDColumn" msprop:Generator_UserColumnName="RemoteFaultSummaryID" type="xs:int" />
              <xs:element name="Distance" msprop:Generator_ColumnVarNameInTable="columnDistance" msprop:Generator_ColumnPropNameInRow="Distance" msprop:Generator_ColumnPropNameInTable="DistanceColumn" msprop:Generator_UserColumnName="Distance" type="xs:double" />
              <xs:element name="Angle" msprop:Generator_ColumnVarNameInTable="columnAngle" msprop:Generator_ColumnPropNameInRow="Angle" msprop:Generator_ColumnPropNameInTable="AngleColumn" msprop:Generator_UserColumnName="Angle" type="xs:double" />
              <xs:element name="IsValid" msprop:Generator_ColumnVarNameInTable="columnIsValid" msprop:Generator_ColumnPropNameInRow="IsValid" msprop:Generator_ColumnPropNameInTable="IsValidColumn" msprop:Generator_UserColumnName="IsValid" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="FaultSummary" msprop:Generator_TableClassName="FaultSummaryDataTable" msprop:Generator_TableVarName="tableFaultSummary" msprop:Generator_TablePropName="FaultSummary" msprop:Generator_RowDeletingName="FaultSummaryRowDeleting" msprop:Generator_RowChangingName="FaultSummaryRowChanging" msprop:Generator_RowEvHandlerName="FaultSummaryRowChangeEventHandler" msprop:Generator_RowDeletedName="FaultSummaryRowDeleted" msprop:Generator_UserTableName="FaultSummary" msprop:Generator_RowChangedName="FaultSummaryRowChanged" msprop:Generator_RowEvArgName="FaultSummaryRowChangeEvent" msprop:Generator_RowClassName="FaultSummaryRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="EventID" msprop:Generator_ColumnVarNameInTable="columnEventID" msprop:Generator_ColumnPropNameInRow="EventID" msprop:Generator_ColumnPropNameInTable="EventIDColumn" msprop:Generator_UserColumnName="EventID" type="xs:int" />
              <xs:element name="Algorithm" msprop:Generator_ColumnVarNameInTable="columnAlgorithm" msprop:Generator_ColumnPropNameInRow="Algorithm" msprop:Generator_ColumnPropNameInTable="AlgorithmColumn" msprop:Generator_UserColumnName="Algorithm">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="80" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FaultNumber" msprop:Generator_ColumnVarNameInTable="columnFaultNumber" msprop:Generator_ColumnPropNameInRow="FaultNumber" msprop:Generator_ColumnPropNameInTable="FaultNumberColumn" msprop:Generator_UserColumnName="FaultNumber" type="xs:int" />
              <xs:element name="CalculationCycle" msprop:Generator_ColumnVarNameInTable="columnCalculationCycle" msprop:Generator_ColumnPropNameInRow="CalculationCycle" msprop:Generator_ColumnPropNameInTable="CalculationCycleColumn" msprop:Generator_UserColumnName="CalculationCycle" type="xs:int" />
              <xs:element name="Distance" msprop:Generator_ColumnVarNameInTable="columnDistance" msprop:Generator_ColumnPropNameInRow="Distance" msprop:Generator_ColumnPropNameInTable="DistanceColumn" msprop:Generator_UserColumnName="Distance" type="xs:double" />
              <xs:element name="CurrentMagnitude" msprop:Generator_ColumnVarNameInTable="columnCurrentMagnitude" msprop:Generator_ColumnPropNameInRow="CurrentMagnitude" msprop:Generator_ColumnPropNameInTable="CurrentMagnitudeColumn" msprop:Generator_UserColumnName="CurrentMagnitude" type="xs:double" />
              <xs:element name="CurrentLag" msprop:Generator_ColumnVarNameInTable="columnCurrentLag" msprop:Generator_ColumnPropNameInRow="CurrentLag" msprop:Generator_ColumnPropNameInTable="CurrentLagColumn" msprop:Generator_UserColumnName="CurrentLag" type="xs:double" />
              <xs:element name="PrefaultCurrent" msprop:Generator_ColumnVarNameInTable="columnPrefaultCurrent" msprop:Generator_ColumnPropNameInRow="PrefaultCurrent" msprop:Generator_ColumnPropNameInTable="PrefaultCurrentColumn" msprop:Generator_UserColumnName="PrefaultCurrent" type="xs:double" />
              <xs:element name="PostfaultCurrent" msprop:Generator_ColumnVarNameInTable="columnPostfaultCurrent" msprop:Generator_ColumnPropNameInRow="PostfaultCurrent" msprop:Generator_ColumnPropNameInTable="PostfaultCurrentColumn" msprop:Generator_UserColumnName="PostfaultCurrent" type="xs:double" />
              <xs:element name="Inception" msprop:Generator_ColumnVarNameInTable="columnInception" msprop:Generator_ColumnPropNameInRow="Inception" msprop:Generator_ColumnPropNameInTable="InceptionColumn" msprop:Generator_UserColumnName="Inception" type="xs:dateTime" />
              <xs:element name="DurationSeconds" msprop:Generator_ColumnVarNameInTable="columnDurationSeconds" msprop:Generator_ColumnPropNameInRow="DurationSeconds" msprop:Generator_ColumnPropNameInTable="DurationSecondsColumn" msprop:Generator_UserColumnName="DurationSeconds" type="xs:double" />
              <xs:element name="DurationCycles" msprop:Generator_ColumnVarNameInTable="columnDurationCycles" msprop:Generator_ColumnPropNameInRow="DurationCycles" msprop:Generator_ColumnPropNameInTable="DurationCyclesColumn" msprop:Generator_UserColumnName="DurationCycles" type="xs:double" />
              <xs:element name="FaultType" msprop:Generator_ColumnVarNameInTable="columnFaultType" msprop:Generator_ColumnPropNameInRow="FaultType" msprop:Generator_ColumnPropNameInTable="FaultTypeColumn" msprop:Generator_UserColumnName="FaultType">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="IsSelectedAlgorithm" msprop:Generator_ColumnVarNameInTable="columnIsSelectedAlgorithm" msprop:Generator_ColumnPropNameInRow="IsSelectedAlgorithm" msprop:Generator_ColumnPropNameInTable="IsSelectedAlgorithmColumn" msprop:Generator_UserColumnName="IsSelectedAlgorithm" type="xs:int" />
              <xs:element name="IsValid" msprop:Generator_ColumnVarNameInTable="columnIsValid" msprop:Generator_ColumnPropNameInRow="IsValid" msprop:Generator_ColumnPropNameInTable="IsValidColumn" msprop:Generator_UserColumnName="IsValid" type="xs:int" />
              <xs:element name="IsSuppressed" msprop:Generator_ColumnVarNameInTable="columnIsSuppressed" msprop:Generator_ColumnPropNameInRow="IsSuppressed" msprop:Generator_ColumnPropNameInTable="IsSuppressedColumn" msprop:Generator_UserColumnName="IsSuppressed" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="NearestStructure" msprop:Generator_TableClassName="NearestStructureDataTable" msprop:Generator_TableVarName="tableNearestStructure" msprop:Generator_TablePropName="NearestStructure" msprop:Generator_RowDeletingName="NearestStructureRowDeleting" msprop:Generator_RowChangingName="NearestStructureRowChanging" msprop:Generator_RowEvHandlerName="NearestStructureRowChangeEventHandler" msprop:Generator_RowDeletedName="NearestStructureRowDeleted" msprop:Generator_UserTableName="NearestStructure" msprop:Generator_RowChangedName="NearestStructureRowChanged" msprop:Generator_RowEvArgName="NearestStructureRowChangeEvent" msprop:Generator_RowClassName="NearestStructureRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="FaultSummaryID" msprop:Generator_ColumnVarNameInTable="columnFaultSummaryID" msprop:Generator_ColumnPropNameInRow="FaultSummaryID" msprop:Generator_ColumnPropNameInTable="FaultSummaryIDColumn" msprop:Generator_UserColumnName="FaultSummaryID" type="xs:int" />
              <xs:element name="StructureID" msprop:Generator_ColumnVarNameInTable="columnStructureID" msprop:Generator_ColumnPropNameInRow="StructureID" msprop:Generator_ColumnPropNameInTable="StructureIDColumn" msprop:Generator_UserColumnName="StructureID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="FaultEmail" msprop:Generator_TableClassName="FaultEmailDataTable" msprop:Generator_TableVarName="tableFaultEmail" msprop:Generator_TablePropName="FaultEmail" msprop:Generator_RowDeletingName="FaultEmailRowDeleting" msprop:Generator_RowChangingName="FaultEmailRowChanging" msprop:Generator_RowEvHandlerName="FaultEmailRowChangeEventHandler" msprop:Generator_RowDeletedName="FaultEmailRowDeleted" msprop:Generator_UserTableName="FaultEmail" msprop:Generator_RowChangedName="FaultEmailRowChanged" msprop:Generator_RowEvArgName="FaultEmailRowChangeEvent" msprop:Generator_RowClassName="FaultEmailRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="TimeSent" msprop:Generator_ColumnVarNameInTable="columnTimeSent" msprop:Generator_ColumnPropNameInRow="TimeSent" msprop:Generator_ColumnPropNameInTable="TimeSentColumn" msprop:Generator_UserColumnName="TimeSent" type="xs:dateTime" />
              <xs:element name="ToLine" msprop:Generator_ColumnVarNameInTable="columnToLine" msprop:Generator_ColumnPropNameInRow="ToLine" msprop:Generator_ColumnPropNameInTable="ToLineColumn" msprop:Generator_UserColumnName="ToLine">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Subject" msprop:Generator_ColumnVarNameInTable="columnSubject" msprop:Generator_ColumnPropNameInRow="Subject" msprop:Generator_ColumnPropNameInTable="SubjectColumn" msprop:Generator_UserColumnName="Subject">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Message" msprop:Generator_ColumnVarNameInTable="columnMessage" msprop:Generator_ColumnPropNameInRow="Message" msprop:Generator_ColumnPropNameInTable="MessageColumn" msprop:Generator_UserColumnName="Message">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="EventFaultEmail" msprop:Generator_TableClassName="EventFaultEmailDataTable" msprop:Generator_TableVarName="tableEventFaultEmail" msprop:Generator_TablePropName="EventFaultEmail" msprop:Generator_RowDeletingName="EventFaultEmailRowDeleting" msprop:Generator_RowChangingName="EventFaultEmailRowChanging" msprop:Generator_RowEvHandlerName="EventFaultEmailRowChangeEventHandler" msprop:Generator_RowDeletedName="EventFaultEmailRowDeleted" msprop:Generator_UserTableName="EventFaultEmail" msprop:Generator_RowChangedName="EventFaultEmailRowChanged" msprop:Generator_RowEvArgName="EventFaultEmailRowChangeEvent" msprop:Generator_RowClassName="EventFaultEmailRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnPropNameInTable="IDColumn" msprop:Generator_UserColumnName="ID" type="xs:int" />
              <xs:element name="EventID" msprop:Generator_ColumnVarNameInTable="columnEventID" msprop:Generator_ColumnPropNameInRow="EventID" msprop:Generator_ColumnPropNameInTable="EventIDColumn" msprop:Generator_UserColumnName="EventID" type="xs:int" />
              <xs:element name="FaultEmailID" msprop:Generator_ColumnVarNameInTable="columnFaultEmailID" msprop:Generator_ColumnPropNameInRow="FaultEmailID" msprop:Generator_ColumnPropNameInTable="FaultEmailIDColumn" msprop:Generator_UserColumnName="FaultEmailID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CycleData" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="FaultCurve_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:FaultCurve" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="FaultSegment_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:FaultSegment" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="DoubleEndedFaultDistance_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DoubleEndedFaultDistance" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="FaultSummary_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:FaultSummary" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="NearestStructure_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:NearestStructure" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="FaultEmail_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:FaultEmail" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
    <xs:unique name="EventFaultEmail_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:EventFaultEmail" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>